<?php

namespace app\index\validate;
use think\Validate;

/**
 * Class Users
 * @package app\index\validate
 * 前台用户控制器
 */
class Register extends Validate
{
    protected $rule = [
        'uname'  => 'require',
        'password' => 'number|require',
        'pwdagain' =>  'require|confirm:password'
    ];

    protected $message = [
        'uname.require'  => '请填写用户名',
        'password.require'  => '请填写密码',
        'password.number'   => '密码必须是数字',
        'pwdagain.require'  => '请再次输入',
        'pwdagain.confirm'  => '两次密码不一致',
    ];
}